CC = gcc
CFLAGS = -Wall -ansi

all: myserver

myserver: server.o myhttp.o
	$(CC) $(CFLAGS) myhttp.o server.o -o myserver -lpthread

server.o: server.c server.h
	$(CC) $(CFLAGS) -c server.c

myhttp.o: myhttp.c myhttp.h
	$(CC) $(CFLAGS) -c myhttp.c

clean:
	rm *.o myserver



